<?php

namespace app\store\controller\data\lottery;

use app\store\controller\Controller;
use app\store\model\lottery\Prize as PrizeModel;

/**
 * 抽奖奖品数据控制器
 * Class Prize
 * @package app\store\controller\data\lottery
 */
class Prize extends Controller
{
    /**
     * 构造方法
     */
    public function _initialize()
    {
        parent::_initialize();
        $this->view->engine->layout(false);
    }

    /**
     * 奖品列表
     */
    public function lists($search = '')
    {
        $model = new PrizeModel;
        $list = $model->getList($search);
        return $this->fetch('list', compact('list'));
    }

}
